<html>
  <link rel="stylesheet" TYPE="text/css" HREF="menu.css">

  <script language="javascript" src="../../script/libjs/ecran.js"></script>
  <script language="javascript" src="../../script/libjs/script.js"></script>
  <script language="javascript" src="../../script/libjs/image.js"></script>
  <script language="javascript" src="../../script/libjs/menu.js"></script>
  <body leftmargin="0" topmargin="1" marginwidth="0" marginheight="0" background="../../image/fond1.gif">
    <font face="Times New Roman,Times" color="#FE3328">
      <center><b>Librairie Javascript</b></center>
      <center><b>Exemples de petits scripts : menu.js</b></center>
    </font>
    
    <hr>
    
    <table width="100%" border="1">
      <tr>
        <td width="25%">
          <center>AL_Menu_mode_tout</center>
        </td>
        <td width="25%">
          <center>AL_Menu_mode_seul</center>
        </td>
        <td width="25%">
          <center>AL_Menu_mode_survol</center>
        </td>
        <td width="25%">
          <center>AL_Menu_mode_horizontal</center>
        </td>
      </tr>
    </table>

    <img src="vide.gif" width="1" height="150">

    <table width="100%" border="1">
      <tr>
        <td width="50%">
          <center>AL_Menu_mode_sans_icone</center>
        </td>
        <td width="50%">
          <center>AL_Menu_mode_sans_icone+Horizontal</center>
        </td>
      </tr>
    </table>
  </body>
  <script language="javascript">
    function Popup(Nom,Texte)
    {
      Afficher_texte('<center>'+Texte+'</center>',140,70);
      eval(Nom+'.Fermer_tout()');
    }

    function Intitule(Nom,Texte)
    {
      var Valeur='<a href="#" onClick="javascript:Popup(\''+Nom+'\',\''+Texte+'\');"><pre class="Menu">'+Texte+'</pre></a>';
      var Tableau='<div class="Menu">'+Valeur+'</div>';
      return(Tableau);
    }

    function Definir_menu(Menu)
    {
      Menu.Creer(null,'P0001',80,20,Intitule(Menu.Nom,'Menu 1'));
      Menu.Creer('P0001','P0011',80,20,Intitule(Menu.Nom,'Menu 2'));
      Menu.Creer('P0001','P0012',80,20,Intitule(Menu.Nom,'Menu 3'));
      Menu.Creer('P0012','P0112',80,20,Intitule(Menu.Nom,'Menu 4'));
      Menu.Creer('P0012','P0113',80,20,Intitule(Menu.Nom,'Menu 5'));
      Menu.Creer(null,'P0002',80,20,Intitule(Menu.Nom,'Menu 6'));
      Menu.Creer('P0002','P0021',80,20,Intitule(Menu.Nom,'Menu 7'));
      
      Menu.Afficher();
    }

    Menu1=new AL_Creer_menu("Menu1","../../script/menu/menu1",5,90,10,AL_Menu_mode_tout);
    Definir_menu(Menu1);

    Menu2=new AL_Creer_menu("Menu2","../../script/menu/menu2",165,90,10,AL_Menu_mode_seul);
    Definir_menu(Menu2);

    Menu3=new AL_Creer_menu("Menu3","../../script/menu/menu3",310,90,10,AL_Menu_mode_survol+AL_Menu_mode_seul);
    Definir_menu(Menu3);

    Menu4=new AL_Creer_menu("Menu4","../../script/menu/menu2",435,90,10,AL_Menu_mode_horizontal);
    Definir_menu(Menu4);

    Menu5=new AL_Creer_menu("Menu5","../../script/menu/menu2",55,275,10,AL_Menu_mode_sans_icone);
    Definir_menu(Menu5);

    Menu6=new AL_Creer_menu("Menu6","../../script/menu/menu2",395,275,10,AL_Menu_mode_sans_icone+AL_Menu_mode_horizontal);
    Definir_menu(Menu6);
  </script>
</html>